package Source;

import java.util.ArrayList;

/**
 *
 * @author Joshua King
 */
public class DisplayDeleteAirport {
    private String[] str = {""};
    
    public String[] getStr() {
        return str;
    }

    public void retrieveAirport() {
        FlightServerInteraction logIn = new FlightServerInteraction();
        ArrayList<String> request = new ArrayList<String>();
        ArrayList<String> reply = new ArrayList<String>();
        request.add(0, "getAirports");
        reply = logIn.run(request);
        System.out.println(reply);
        str = new String[reply.size()];
        for (int i = 0; i < reply.size(); i++)
        {
            str[i] = reply.get(i);
            System.out.println(str[i]);
        }
    }
    
}
